<template>
	<view class="flex-col homepage">
		<view class="flex-row wrapper-three">
			<view class="flex-row wraper-col-five">
				<view class="u-line-3 text"></view>
				<view class="box"></view>
				<view class="u-line-1 text-two">访客信息</view>
			</view>
			<view class="section" sub-title="访客信息" :show-line="false">
				<u-tag :text="this.visitorsRecord.state"style="width: 50px;margin-left: 50px;" plain size="mini" type="warning"></u-tag>
			</view>
		</view>
		<view class="flex-row wrapper-four">
			<view class="flex-col flex-row wraper-col-seven">
				<view class="u-line-2 text-three">访问房屋：{{this.visitorsRecord.address}}</view>
				<view class="u-line-2 text-three">访客姓名：{{this.visitorsRecord.visitorsName}}</view>
				<view class="u-line-2 text-three">访客性别：{{this.visitorsRecord.visitorsAge}}</view>
				<view class="u-line-2 text-three">手机号码：{{this.visitorsRecord.visitorsPhone}}</view>
				<view class="u-line-2 text-three">访问日期：{{this.visitorsRecord.accessTime}}</view>
				<view class="u-line-2 text-three">访问时长：{{this.visitorsRecord.duration}}h</view>
			</view>
		</view>
		<view class="">
			<u-button type="primary" text="查看通行证" style="width: 380px;"></u-button>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				visitorsRecord:{}
			}
		},
		onLoad(option) {
			//获取到访客详情
			const editItem = JSON.parse(decodeURIComponent(option.data));
			this.visitorsRecord=editItem
		},
		methods: {
			tz() {
				uni.navigateTo({
					url: '../wjx/service',
				 success: function(res) {
				 	console.log(res)
					}
				})
			},
			tzwod() {
				uni.navigateTo({
					url: '../wjx/Myprofile',
				 success: function(res) {
						console.log(res)
					}
				})
			}
		}
	}
</script>
<style lang="scss" scoped>
	/** 全局样式-开始,建议放在公共css样式文件中,比如common.css 或app.vue文件 */

	html,
	body {
		margin: 0;
		width: 100%;
		height: 100%;
		font-size: 16px
	}

	.box1 {
		width: 690rpx;
		margin: -60rpx 12rpx 0 0;
		height: 300rpx;
	}

	view,
	text,
	image {
		position: relative;
		box-sizing: border-box;
		flex-shrink: 0;
	}

	.dbbox {
		width: 1200px;
		height: 100%;
		margin-left: -18px;
		background-color: white;
		margin-top: 100px;
	}

	.dibu {
		float: left;
		margin-left: 70px;
	}

	.flex-col {
		display: flex;
		align-items: flex-start;
		flex-direction: column;
	}

	.flex-row {
		display: flex;
		align-items: flex-start;
	}

	.flex-col .flex-row {
		width: 100%
	}

	/** 全局样式-结束*/
	.homepage {
		padding: 120rpx 0rpx 0rpx 32rpx;
		border-color: rgba(210, 210, 210, 1);
		font-weight: 500;

		.swiper {
			width: 670rpx;
			height: 288rpx;
			margin: 0rpx 0rpx 26rpx 8rpx;
		}

		.noticeBar {
			width: 676rpx;
			margin: 0rpx 0rpx 40rpx 6rpx;
		}

		.dage {
			width: 144rpx;
			height: 204rpx;

		}

		.size {
			text-align: center;
			margin-top: 15rpx;
		}

		.wrapper {
			width: 676rpx;
			justify-content: space-between;
			margin-bottom: 35rpx;

			.wraper-col {
				width: 144rpx;
				height: 144rpx;
				border-width: 2rpx;
				border-style: solid;
				border-color: rgba(226, 226, 226, 1);
				border-radius: 40rpx;
			}

			.wraper-col-two {
				width: 144rpx;
				height: 144rpx;
				border-width: 2rpx;
				border-style: solid;
				border-color: rgba(221, 221, 221, 1);
				border-radius: 40rpx;
			}

			.wraper-col-three {
				width: 144rpx;
				height: 144rpx;
				border-width: 2rpx;
				border-style: solid;
				border-color: rgba(210, 210, 210, 1);
				border-radius: 40rpx;
			}

			.wraper-col-four {
				width: 144rpx;
				height: 144rpx;
				border-width: 2rpx;
				border-style: solid;
				border-color: rgba(204, 204, 204, 1);
				border-radius: 40rpx;
			}
		}

		.wrapper-two {
			width: 682rpx;
			height: 188rpx;
			margin-bottom: 30rpx;
		}

		.wrapper-three {
			width: 660rpx;
			justify-content: space-between;
			margin-bottom: 20rpx;

			.wraper-col-five {
				width: 164rpx;

				.text {
					width: 162rpx;
					font-size: 26rpx;
				}

				.box {
					width: 16rpx;
					height: 44rpx;
					border-radius: 40rpx;
					top: 22rpx;
					left: 6rpx;
					background: rgba(39, 99, 208, 1);
					position: absolute;
				}

				.text-two {
					width: 174rpx;
					top: 22rpx;
					left: 34rpx;
					font-size: 34rpx;
					position: absolute;
					font-weight: 500;
				}
			}

			.section {
				width: 156rpx;
				height: 38rpx;
				margin-top: 30rpx;
				color: darkgray;
			}
		}

		.wrapper-four {
			width: 682rpx;
			justify-content: space-between;
			margin: 0rpx 0rpx 20rpx 6rpx;
			padding: 38rpx 0rpx 34rpx 38rpx;
			border: 1rpx solid gainsboro;

			.wraper-col-six {
				width: 244rpx;
				height: 188rpx;
				background: #a0cfff;
			}

			.wraper-col-seven {
				width: 364rpx;
				margin-top: 5rpx;

				.text-three {
					width: 584rpx;
					margin-bottom: 40rpx;
					font-size: 30rpx;
				}

				.text-four {
					width: 100%;
					font-size: 20rpx;
					color: rgba(156, 151, 151, 1);
				}
			}
		}

		.wrapper-five {
			width: 682rpx;
			justify-content: space-between;
			margin-left: 6rpx;
			padding: 38rpx 0rpx 34rpx 38rpx;
			border: 1rpx solid gainsboro;

			.wraper-col-eight {
				width: 244rpx;
				height: 178rpx;
				background: #a0cfff;
			}

			.wraper-col-nine {
				width: 364rpx;
				margin-top: 5rpx;

				.text-five {
					width: 314rpx;
					margin-bottom: 40rpx;
					font-size: 30rpx;
				}

				.text-six {
					width: 100%;
					font-size: 20rpx;
					color: rgba(156, 151, 151, 1);
				}
			}
		}

		.wrapper-six {
			width: 682rpx;
			justify-content: space-between;
			padding: 38rpx 0rpx 34rpx 38rpx;
			border-width: 2rpx;
			border-style: solid;
			border-color: rgba(204, 204, 204, 1);
			bottom: -74rpx;
			left: 34rpx;
			position: absolute;

			.wraper-col-ten {
				width: 244rpx;
				height: 178rpx;
				border-width: 4rpx;
				border-style: solid;
				border-color: rgba(238, 238, 238, 1);
			}

			.wraper-col-eleven {
				width: 364rpx;
				margin-top: 16rpx;

				.text-seven {
					width: 314rpx;
					margin-bottom: 56rpx;
					font-size: 30rpx;
				}

				.text-eight {
					width: 100%;
					font-size: 20rpx;
					color: rgba(156, 151, 151, 1);
				}
			}
		}
	}
</style>
